<template>
	<view class="container">
		<view class="main-title">
			准备添加密码
		</view>
		<view class="sub-item">
			<view class="sub-title">
				手机请处于门锁附近，然后点击屏幕下方“创建密码”按钮。
			</view>
		</view>
		<view>
			<image style="width: 750rpx; height: 596rpx;" src="@/static/index/collect.png" mode="aspectFit"></image>
		</view>
		<view class="button_box">
			<view class="btn" @click="handler">
				去创建密码
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onUnload() {},
		methods: {
			handler() {
				uni.navigateTo({
					url: '/pages/common/numPassword/createPassword?createType=1' // 1:蓝牙方式
				})
			},
		}
	}
</script>
<style>
	page {
		height: 100vh;
		background: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
	.container {
		position: relative;
		height: 100vh;
		padding-bottom: 60rpx;
		box-sizing: border-box;
		background-color: #FFFFFF;

		.main-title {
			width: 100%;
			font-size: 40rpx;
			font-weight: 500;
			color: #1F2642;
			line-height: 40rpx;
			text-align: center;
			margin-top: 100rpx;
			margin-bottom: 24rpx;
		}

		.sub-item {
			width: 100%;
			display: flex;
			justify-content: center;
		}

		.sub-title {
			width: 560rpx;
			font-size: 28rpx;
			font-weight: 400;
			color: #8F92A0;
			line-height: 40rpx;
			text-align: center;
		}

		.button_box {
			margin-top: 80rpx;
			display: flex;
			flex-direction: row;
			justify-content: center;

			.btn {
				width: 85%;
				font-size: 35rpx;
				padding: 22rpx;
				text-align: center;
				background: linear-gradient(135deg, #4593FF 0%, #1C78F7 100%);
				color: #fff;
				border-radius: 20rpx;
				margin: 0 auto;
			}
		}
	}
</style>